package com.nageoffer.shortlink.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.admin.dao.entity.UserDo;
import com.nageoffer.shortlink.admin.dto.req.UserRegisterReqDto;
import com.nageoffer.shortlink.admin.dto.resp.UserRespDTO;

public interface UserService extends IService<UserDo> {
    /**
     * 根据用户名查询用户信息
     * @param username
     * @return返回 UserRespDTO 对象
     */
    UserRespDTO getUserByUsername(String username) ;

    /**
     * 判断用户是否存在
     * @param username
     * @return
     */
    Boolean hasUsername(String username);

    /**
     * 在创建对象时候对象就用requestParam
     * @param requestParam
     */
    void register(UserRegisterReqDto requestParam);

}
